package com.yuyou.fn.tradingservice.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.Teacher;
import com.yuyou.fn.platform.entity.BusTeam;
import com.yuyou.fn.platform.entity.SysUser;
import com.yuyou.fn.settlement.entity.MainAccount;
import com.yuyou.fn.tradingservice.entity.ServiceMerchant;
import com.yuyou.fn.tradingservice.vo.ServiceMerchantVo;
import com.yuyou.fn.tradingservice.vo.TeamVo;

import java.util.List;

/**
 *
 * ServiceMerchant 表数据服务层接口
 *
 */
public interface IServiceMerchantService extends ISuperService<ServiceMerchant,Long> {


    Long saveOrUpdate(ServiceMerchantVo serviceMerchantVo);

    Long countByPhoneNoAndStatus(String phoneNo,Integer status);

    Page<ServiceMerchant> findMerchantPage(ServiceMerchantVo serviceMerchant, int pageNo, int pageSize);

    List<ServiceMerchant> findLimitMerchant(Integer limit);

    void save(ServiceMerchantVo serviceMerchantVo);

    void auditMerchants(List<Long> merchantIds,Integer status);

    void auditMerchants(ServiceMerchantVo serviceMerchant);

    void auditPassMerchant(Integer status,ServiceMerchant serviceMerchant);

    void changeStatusByMerchantIds(List<Long> merchantIds,Integer status);

    SysUser addSysUserByMerchant(ServiceMerchant serviceMerchant,Integer status);

    Teacher addTeacherByMerchant(ServiceMerchant serviceMerchant,Integer status);

    BusTeam addBusTeamByMerchant(ServiceMerchant serviceMerchant);

    List<MainAccount> ownMainAccount(SysUser user);

    List<TeamVo> ownTeam(SysUser user);


    void changeMerchantPassword(String phoneNo,String newPasswordMd5);
}